package hari3.tes.soal4;

public class CheckLoginDemo {

    public static void main(String[] args) 
    {
        String[] userpass = 
         {"admin/admin", "root/root", "trainer/trainer", 
          "user/user", "scott/tiger", "someone/123"};
         Login login = new LoginImpl();
         for (int i=0; i<userpass.length ; i++ )
         {
             int code = login.validate(userpass[i]);
             switch (code)
             {
                 // ...
             }
         }
    }
}
